#include <stdio.h>

int main()
{
    int a = 5;
    int b = 2;
    //int c = a / b;
    //double f = a / b;
    double f = (double)a / b;//强制把a转化为一个double类型
    printf("%lf\n", f);
    return 0;
}

